<table width="24%" border="0" cellpadding="2" cellspacing="1" align="center">
  <?php
if (isset($_SESSION['SES_USERPLG'])=="") {
?>
  <form name="frmLogin" method="post" action="?page=login">
   
    <tr bgcolor="#F9F8F6" > 
      <td width="78" height="18">&nbsp;User Name </td>
      <td width="166"> : 
      <input name="TxtUserID" type="text"   maxlength="30"> </td>
    </tr>
    <tr bgcolor="#F9F8F6" > 
      <td height="18" >&nbsp;Password</td>
      <td> : 
        <input name="TxtPassID" type="password"  maxlength="30"> </td>
    </tr>
    <tr bgcolor="#F9F8F6"> 
      <td colspan="2">&nbsp;</td>
    </tr>
    <tr> 
      <td >&nbsp;</td>
      <td ><input type="submit" name="TbLogin" value="Login" /></td>
    </tr>
    
    <tr> 
      <td colspan="2" ></td>
    </tr>
  </form>
  <?php
}
else { 
?>
  <tr> 
    
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
   
  <?php
}
?>
</table>
